import {host} from "./host";
export const search_url = host + '/search';

const API = {
    SEARCH: host + '/search', //搜索
    BOOK_INFO: host + '/bookInfo/',  //书籍详情
    BOOK_SOURCE_BOOK_ID: host + '/book/source/bookId/',  //书籍源列表
    BOOK_CHAPTER_BOOK_ID: host + '/book/chapter/bookId/',  //书籍章节
    BOOK_CHAPTER_SOURCE_ID: host + '/book/chapter/sourceId/',  //书籍章节，通过源ID
    BOOK_CHAPTER: host + '/book/chapter',  //书籍章节，通过源ID或书籍ID，源ID优先
    BOOK_CONTENT: host + '/book/content',  // 获取小说章节内容
    MAJOR_SORT: host + '/sort',  // 获取主分类
    All_SORT: host + '/sort/all',  // 获取所有分类
    SORT_BOOK: host + '/sort/book',  // 获取所有分类
    RANK_INFO: host + '/rank',  // 获取所有排行信息
    RANK_BOOK: host + '/rank/book',  // 获取所有排行的书
    BOOK_STORE: host + '/bookstore',  // 书架
    BOOK_STORE_MORE: host + '/recommendPage',  // 书架的获取更多
    DOWNLOAD_BOOK: host + '/download',  // 下载书
};

export default API;

